/**
 * px2vw
 * @param {Number} $px 
 * @param {Number} $designWidth
 * @returns {String} vw
 */
export const px2vw = ($px, $designWidth = 1920) => {
  const num = ($px / $designWidth) * 100;
  const value = num % 1 === 0 ? num : num.toFixed(2);
  return value + 'vw';
};
